from boot import QFrame, QSizePolicy, QHBoxLayout, Qt, Union, QWidget


__all__ = ["QQ9PageBase"]


class QQ9PageBase(QFrame):

    def __init__(self,
                    parent: Union[QWidget, None] = None,
                 ):
        super().__init__(parent)

        # 主水平布局
        self.main_h_layout = QHBoxLayout()
        self.main_h_layout.setContentsMargins(0, 0, 0, 0)
        self.main_h_layout.setSpacing(0)
        self.main_h_layout.setAlignment(Qt.AlignLeft)
        self.setLayout(self.main_h_layout)
        self.setObjectName(self.__class__.__name__)
        self._set_style_sheet()

    def _set_style_sheet(self):
        self.setStyleSheet(
            """
            PageBase {
                background-color: #transparent;
            }
            """
        )